package com.qianniu.napi.admin.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.qianniu.napi.admin.web.UserstatController;
import org.slf4j.Logger;import org.slf4j.LoggerFactory;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenxuebin
 * @since 2018-11-26
 */
@TableName("t_userstat")
public class Userstat extends Model<Userstat> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
	private Long uid;
	private Long mid;
	private Long mpid;

	private String guid;

	private Integer access;//访问我的人数
	private Integer accessc;//访问我的总次数

	private Integer visit;//我的访问
	private Integer visitc;//我的访问总次数

    /**
     * 商品收藏
     */
	private Integer gfav;
    /**
     * 客户收藏
     */
	private Integer ufav;

	/**
	 * 客户收藏
	 */
	private Integer kehu;
    /**
     * 点赞数
     */
	private Integer zuan;
    /**
     * 聊天次数
     */
	private Integer shuo;
    /**
     * 动态数
     */
	private Integer dongtai;
    /**
     * 状态
     */
	private Integer state;
    /**
     * 人气
     */
	private Integer renqi;
	private Integer share;
	private Integer call;

    /**
     * 是否活跃
     */
	@TableField("is_huoyue")
	private Integer isHuoyue;
	private Date lastvtime;
	private Date createtime;
	private Date modifytime;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getUid() {
		return uid;
	}

	public void setUid(Long uid) {
		this.uid = uid;
	}

	public Long getMid() {
		return mid;
	}

	public void setMid(Long mid) {
		this.mid = mid;
	}

	public Long getMpid() {
		return mpid;
	}

	public void setMpid(Long mpid) {
		this.mpid = mpid;
	}

	public Integer getAccess() {
		return access;
	}

	public void setAccess(Integer access) {
		this.access = access;
	}

	public Integer getVisit() {
		return visit;
	}

	public void setVisit(Integer visit) {
		this.visit = visit;
	}

	public Integer getGfav() {
		return gfav;
	}

	public void setGfav(Integer gfav) {
		this.gfav = gfav;
	}

	public Integer getUfav() {
		return ufav;
	}

	public void setUfav(Integer ufav) {
		this.ufav = ufav;
	}

	public Integer getZuan() {
		return zuan;
	}

	public void setZuan(Integer zuan) {
		this.zuan = zuan;
	}

	public Integer getShuo() {
		return shuo;
	}

	public void setShuo(Integer shuo) {
		this.shuo = shuo;
	}

	public Integer getKehu() {
		return kehu;
	}

	public void setKehu(Integer kehu) {
		this.kehu = kehu;
	}

	public Integer getDongtai() {
		return dongtai;
	}

	public void setDongtai(Integer dongtai) {
		this.dongtai = dongtai;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Integer getRenqi() {
		return renqi;
	}

	public void setRenqi(Integer renqi) {
		this.renqi = renqi;
	}

	public Integer getShare() {
		return share;
	}

	public void setShare(Integer share) {
		this.share = share;
	}

	public Integer getCall() {
		return call;
	}

	public void setCall(Integer call) {
		this.call = call;
	}

	public String getGuid() {
		return guid;
	}

	public void setGuid(String guid) {
		this.guid = guid;
	}

	public Integer getAccessc() {
		return accessc;
	}

	public void setAccessc(Integer accessc) {
		this.accessc = accessc;
	}

	public Integer getVisitc() {
		return visitc;
	}

	public void setVisitc(Integer visitc) {
		this.visitc = visitc;
	}

	public Integer getIsHuoyue() {
		return isHuoyue;
	}

	public void setIsHuoyue(Integer isHuoyue) {
		this.isHuoyue = isHuoyue;
	}

	public Date getLastvtime() {
		return lastvtime;
	}

	public void setLastvtime(Date lastvtime) {
		this.lastvtime = lastvtime;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Date getModifytime() {
		return modifytime;
	}

	public void setModifytime(Date modifytime) {
		this.modifytime = modifytime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Userstat{" +
			"id=" + id +
			", uid=" + uid +
			", mid=" + mid +
			", mpid=" + mpid +
			", access=" + access +
			", visit=" + visit +
			", gfav=" + gfav +
			", ufav=" + ufav +
			", zuan=" + zuan +
			", shuo=" + shuo +
			", dongtai=" + dongtai +
			", state=" + state +
			", renqi=" + renqi +
			", accessc=" + accessc +
			", visitc=" + visitc +
			", isHuoyue=" + isHuoyue +
			", lastvtime=" + lastvtime +
			", createtime=" + createtime +
			", modifytime=" + modifytime +
			"}";
	}
}
